from flask import blueprints, render_template, session
from mainapp.dao.card_dao import CardDao

blue = blueprints('card',__name__)

@blue.route('/list2')
def listfordb():
    dao = CardDao()
    data = {
        'cards' : dao.list()
    }
    return  render_template('card/模板作业list02.html', **data)